//
//  ZBWAlbumTailoringViewController.h
//  ZBWAlbum
//
//  Created by Mac on 2022/1/13.
//  Copyright © 2022 com.bw. All rights reserved.
//
#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, PhotoMaskViewMode) {
    PhotoMaskViewModeCircle = 1, // default
    PhotoMaskViewModeSquare = 2  // square
};

@class ZBWAlbumTailoringViewController;

@protocol PhotoViewControllerDelegate <NSObject>

- (void)imageCropper:(ZBWAlbumTailoringViewController *)cropperViewController
         didFinished:(UIImage *)editedImage;
- (void)imageCropperDidCancel:(ZBWAlbumTailoringViewController *)cropperViewController;

@end

//NS_ASSUME_NONNULL_BEGIN

@interface ZBWAlbumTailoringViewController : UIViewController

@property (nonatomic,weak) id<PhotoViewControllerDelegate> delegate;
@property (nonatomic,strong) UIImage *oldImage;
@property (nonatomic,assign) PhotoMaskViewMode mode;                 // 圆形 or 正方形
@property (nonatomic,assign) CGFloat cropWidth;                      // 裁剪宽度
@property (nonatomic,assign) CGFloat cropHeight;                     // 裁剪高度
@property (nonatomic,strong) UIColor *lineColor;                     // 线条颜色
@property (nonatomic,assign) BOOL isDark;                            // 是否为虚线 default is NO
@property (nonatomic,strong) UIColor  *btnBackgroundColor;           // 确定按钮颜色

@end

//NS_ASSUME_NONNULL_END
